/*
 * $Id: Gate.h 396 2010-10-01 13:09:39Z chunghh $
 */

#ifndef _GATE_CLASS_
#define _GATE_CLASS_

#include <xp/Named.hpp>
#include <xp/bas/Thread.hpp>

using namespace xp;
using namespace xp::bas;

class Gate: public Named, public Thread
{
public:
	Gate (const xp_char_t* name);
	~Gate ();

	int run ();
	virtual int main () = 0;
};

#endif
